package com.landian.commons.jpa.builder;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author caojl
 */
public class PageImplBuilder {

    public static <T> Page newInstance(Pageable page, List<T> content, long total) {
        return new PageImpl(content, page, total);
    }
}
